package webresources;

import java.util.HashMap;
import java.util.Map;

public class Mapper {

    private Map<String, Host> mapper = new HashMap<String,Host>();
    private String port;

    public void setMapper(String name, Host host) {
        this.mapper.put(name, host);
    }

    public Host getHost(String name) {
        return mapper.get(name);
    }

    public Map<String, Host> getMapper() {
        return mapper;
    }

    public void setMapper(Map<String, Host> mapper) {
        this.mapper = mapper;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }
}
